﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetPrime100
{
    class Program
    {
        static void Main(string[] args)
        {
            bool[] v = new bool[101];
            for(int i = 2; i * i <= 100; i ++)
            {
                if(!v[i])
                {
                    int tmp = 2 * i;
                    for(int j = tmp; j <= 100; j +=i)
                    {
                        v[j] = true;
                    }
                }                   
            }
            for(int i = 2; i <= 100; i ++)
            {
                if(!v[i])
                {
                    Console.WriteLine(i);
                }
            }
            Console.ReadKey();
        }
    }
}
